/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.List;
import thienphuc.patient.dto.PhongBan;
import thienphuc.patient.dto.Quyen;

/**
 *
 * @author QuocDat
 */
public interface QuyenBO {

    /**
     * Get all Quyen
     * @return
     * @throws Exception 
     */
    List<Quyen> getAll()throws Exception;
    
    /**
     * Get Quyen by QuyenId
     * @param quyenId
     * @return
     * @throws Exception 
     */
    Quyen getById(int quyenId) throws Exception;
    
    /**
     * Get Quyen by TenQuyen
     * @param tenQuyen
     * @return
     * @throws Exception 
     */
    List<Quyen> getByTenQuyen(String tenQuyen) throws Exception;
    
    /**
     * Get Quyen by TrangThai
     * @param trangThai
     * @return
     * @throws Exception 
     */
    List<Quyen> getByTrangThai(boolean trangThai) throws Exception;
    
    /**
     * Get Quyen by PhongBan
     * @param phongBan
     * @return
     * @throws Exception 
     */
    List<Quyen> getByPhongBan(PhongBan phongBan) throws Exception;
    
    /**
     * Insert Quyen
     * @param quyen
     * @return
     * @throws Exception 
     */
    boolean insertQuyen(Quyen quyen)throws Exception;
    
    /**
     * Update Quyen
     * @param quyen
     * @return
     * @throws Exception 
     */
    boolean updateQuyen(Quyen quyen)throws Exception;
            
}
